package com.yz.lzq.liwushuo.ui.modules.home.nomal;

import com.yz.lzq.liwushuo.http.OnGetNetDataListener;
import com.yz.lzq.liwushuo.jsonbean.home.boutique.HomeBoutiqueRecycleBean;

/**
 * Created by Administrator on 2016/12/19.
 */

public class HomeNomalContract {
    /**
     * Created by Administrator on 2016/12/13.
     * home页面的精品fragment view层的接口
     */

    public static interface HomeNomalViewInterface {

        /**
         * 回调获取填充recycleview的数据
         *
         * @param recycleBean
         */
        void getHomeJingPinRecycleBean(HomeBoutiqueRecycleBean recycleBean);

        /**
         * 返回当前fragment请求数据的id
         */
        int getFragmentID();

    }


    /**
     * Created by Administrator on 2016/12/13.
     * 底部导航栏首页下的精品类的fragment的model层的接口
     */

    public static interface HomeNomalModelInterface {

        /**
         * 获取填充RecycleView的数据,也同时获取加载功能的RecycleView的数据
         * AD=2&gender=1&generation=2&LIMIT=20&OFFSET=0
         *
         * @param listener
         */
        void LoadHomeNomalRecycleViewBean(int ad,int id, int gender, int generation, int limit, int offset, OnGetNetDataListener<HomeBoutiqueRecycleBean> listener,boolean loadMore);

        /**
         * 获取加载功能的RecycleView的数据
         * "next_url": "http://api.liwushuo.com/v2/channels/10/items_v2?generation=2&gender=1&limit=20&offset=20"
         *
         * @param listener
         */
//        void LoadMoreHomeNomalRecycleViewBean(int id,int ad, int gender, int genration, int limit, int offst, OnGetNetDataListener<HomeBoutiqueRecycleBean> listener);
    }

}
